home *** CD-ROM | disk | FTP | other *** search
- Path: arlut.utexas.edu!usenet
- From: Lee Crites <crites>
- Newsgroups: comp.lang.c++
- Subject: overloading stream output (<<) with a template...
- Date: 4 Jan 1996 22:29:33 GMT
- Organization: Applied Research Laboratories - The University of Texas at Austin
- Message-ID: <4chkcd$n8q@ns1.arlut.utexas.edu>
- NNTP-Posting-Host: squid.arlut.utexas.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.01 9000/730)
- X-URL: news:comp.lang.c++
-
- I have a template that is defined like this:
-
- template <int theType, int theLength, class T> class Stuff
-
- I would like to overload the << stream operator. It works fine for the class
- before I made it into a template, but I just can't seem to get the right
- combination of things in the declarations of the ostream function. Would some
- kind soul out there please show me the proper format for the friend declaration
- in the class and the actual ostream function declaration?
-
- Thanks muchly...
-
- Lee
-
-